find the direction cosines of x axis